package com.itnetwork.ServiceImp;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.itnetwork.DaoImp.AdminDaoImp;
import com.itnetwork.Entity.Admin;
@Component("adminServiceImp")
public class AdminServiceImp {
	private AdminDaoImp adminDaoImp;
	@Transactional
	public Boolean match(Admin admin){
		Admin administrator=adminDaoImp.getAdminnerInfo(admin.getAid());
		
		return administrator==admin?true:false;
	}

	public AdminDaoImp getAdminDaoImp() {
		return adminDaoImp;
	}
	@Resource(name="adminDaoImp")
	public void setAdminDaoImp(AdminDaoImp adminDaoImp) {
		this.adminDaoImp = adminDaoImp;
	}
	
}
